﻿angular.module('app', ['ui.router',
    'app.filter',
    'app.service',
    'app.home',
    'app.device',
    'app.ad',
    'oc.lazyLoad',
    'app.auth',
    'app.service.auth',
    'app.filemodel'
])

    .run(['$rootScope', '$state', '$stateParams', function ($rootScope, $state, $stateParams) {
        $rootScope.$state = $state;
        $rootScope.$stateParams = $stateParams;
    }])

    .config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
        $urlRouterProvider.otherwise('/login');
    }])
;
